import request from '@/utils/request'

// 查询列表
export function listCourseMember(query) {
  return request({
    url: '/edu/courseMember/list',
    method: 'get',
    params: query
  })
}

export function listCourseUser(query) {
  return request({
    url: '/edu/courseMember/member',
    method: 'get'
  })
}

// 查询详细
export function getCourseMember(id) {
  return request({
    url: '/edu/courseMember/' + id,
    method: 'get'
  })
}

// 新增
export function addCourseMember(data) {
  return request({
    url: '/edu/courseMember',
    method: 'post',
    data: data
  })
}

// 修改
export function updateCourseMember(data) {
  return request({
    url: '/edu/courseMember',
    method: 'put',
    data: data
  })
}

// 删除
export function delCourseMember(id) {
  return request({
    url: '/edu/courseMember/' + id,
    method: 'delete'
  })
}
